package com.java.entity;

import java.util.ArrayList;
import java.util.List;

public class HomeworkGuidanceTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HomeworkGuidanceTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHomeworkGuidanceTypeIdIsNull() {
            addCriterion("homework_guidance_type_id is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdIsNotNull() {
            addCriterion("homework_guidance_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id =", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id <>", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdGreaterThan(Integer value) {
            addCriterion("homework_guidance_type_id >", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id >=", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdLessThan(Integer value) {
            addCriterion("homework_guidance_type_id <", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id <=", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdIn(List<Integer> values) {
            addCriterion("homework_guidance_type_id in", values, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotIn(List<Integer> values) {
            addCriterion("homework_guidance_type_id not in", values, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_id between", value1, value2, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_id not between", value1, value2, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountIsNull() {
            addCriterion("homework_guidance_type_max_count is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountIsNotNull() {
            addCriterion("homework_guidance_type_max_count is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountEqualTo(Integer value) {
            addCriterion("homework_guidance_type_max_count =", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountNotEqualTo(Integer value) {
            addCriterion("homework_guidance_type_max_count <>", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountGreaterThan(Integer value) {
            addCriterion("homework_guidance_type_max_count >", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_max_count >=", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountLessThan(Integer value) {
            addCriterion("homework_guidance_type_max_count <", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountLessThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_max_count <=", value, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountIn(List<Integer> values) {
            addCriterion("homework_guidance_type_max_count in", values, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountNotIn(List<Integer> values) {
            addCriterion("homework_guidance_type_max_count not in", values, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_max_count between", value1, value2, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeMaxCountNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_max_count not between", value1, value2, "homeworkGuidanceTypeMaxCount");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommIsNull() {
            addCriterion("homework_guidance_type_per_count_comm is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommIsNotNull() {
            addCriterion("homework_guidance_type_per_count_comm is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommEqualTo(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm =", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommNotEqualTo(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm <>", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommGreaterThan(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm >", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm >=", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommLessThan(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm <", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommLessThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_per_count_comm <=", value, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommIn(List<Integer> values) {
            addCriterion("homework_guidance_type_per_count_comm in", values, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommNotIn(List<Integer> values) {
            addCriterion("homework_guidance_type_per_count_comm not in", values, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_per_count_comm between", value1, value2, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePerCountCommNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_per_count_comm not between", value1, value2, "homeworkGuidanceTypePerCountComm");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceIsNull() {
            addCriterion("homework_guidance_type_price is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceIsNotNull() {
            addCriterion("homework_guidance_type_price is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceEqualTo(Integer value) {
            addCriterion("homework_guidance_type_price =", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceNotEqualTo(Integer value) {
            addCriterion("homework_guidance_type_price <>", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceGreaterThan(Integer value) {
            addCriterion("homework_guidance_type_price >", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_price >=", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceLessThan(Integer value) {
            addCriterion("homework_guidance_type_price <", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceLessThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_price <=", value, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceIn(List<Integer> values) {
            addCriterion("homework_guidance_type_price in", values, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceNotIn(List<Integer> values) {
            addCriterion("homework_guidance_type_price not in", values, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_price between", value1, value2, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypePriceNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_price not between", value1, value2, "homeworkGuidanceTypePrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}